package com.meta.builder.freemarker.field;

import lombok.Data;

@Data
public class FieldInfo {
    private String fieldType;
    private String sourceField;
    private String fieldName;
    private String columnName;

    public boolean getIsJsonField() {
        return !fieldName.equals(sourceField);
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getSourceField() {
        return sourceField;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }
}